﻿using System;

namespace Thuoc24h.ViewModels
{
    public class CategoryModel
    {
        public int Id { get; set; }
        public string Name { get; set; }
        public string UnsignName { get; set; }
        public Nullable<int> SortOrder { get; set; }
        public Nullable<int> ParentId { get; set; }
        public string ParentName { get; set; }
        public Nullable<int> CategoryType { get; set; }
        public int Count { get; set; }

        public CategoryModel()
        {
        }

        public CategoryModel(int id, string name, int? parentId)
        {
            Id = id;
            Name = name;
            ParentId = parentId;
        }

        public CategoryModel(int id, string name, string unsignName, int? sortOrder, string parentName, int count)
        {
            Id = id;
            Name = name;
            UnsignName = unsignName;
            SortOrder = sortOrder;
            ParentName = parentName;
            Count = count;
        }
    }
}